public class Main {
    public static void main(String[] args) {
        QuadraticEquationSolver solver = new QuadraticEquationSolver();
        double[] solutions = solver.solve(1, -3, 2);
        System.out.println("Solutions: " + solutions[0] + ", " + solutions[1]);

        LoanCalculator calculator = new LoanCalculator();
        double totalInterestFixedPrincipal = calculator.calculateTotalInterest(100, 12, 5, true);
        double totalInterestFixedInstallment = calculator.calculateTotalInterest(100, 12, 5, false);
        System.out.println("Total Interest (Fixed Principal): " + totalInterestFixedPrincipal);
        System.out.println("Total Interest (Fixed Installment): " + totalInterestFixedInstallment);
    }
}